/*
	created time:2018/4/11
	author:Chason
	describe:头部欢乐豆(首页)
*/
class HeaderGlod extends eui.Component {
    private addBtn: eui.Image;
    private glodNumStr: eui.Label;
    constructor() {
        super();
        this.skinName = "headerGlodSkin"
    }

    protected childrenCreated(): void {
        super.childrenCreated();
        this.init();
    }

    private init(): void {
        this.glodNumStr.text = "12345";
        this.addBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchAddBtn, this);
    }

    private touchAddBtn(e: egret.TouchEvent): void {
          console.log("touchAddBtn");
    }


}